extends "../qiye-1/qiye-1.gd"

func _extInit():
	._extInit()
	lv = 2
	addSkill("自身轰炸机15%几率造成8倍伤害", "致命打击")

func castPlane():
	var cha = .castPlane()
	if cha != null and cha.type == sys.CharaClass.CAS:
		cha.addBuff(b_qiye.new())

class b_qiye:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_qiye"
		dispel = 2
	func _connect():
		masCha.connect("onAtkChara",self,"_onAtkChara")
	func _onAtkChara(atkInfo:AtkInfo):
		if sys.rndPer(15):
			atkInfo.factor += 7
